D_MP | The driver is prepared for multiprocessor systems. |
D_WBACK | The driver handles its own cache-writeback operations. |
D_MT | The driver is prepared for a multithreaded kernel. |
D_OLD | The driver implements IRIX 4.x semantics. |
The flag names are declared in the header file sys/ddi.h. A typical definition would resemble the following:
A STREAMS module should also provide this flag, but the only relevant bit value for a STREAMS driver is D_MP (see "Driver Flag Constant").int testdrive_devflag = D_MP;
The flag value is saved in the kernel switch table with the driver's entry points (see "Kernel Switch Tables").
When a driver does not define a pfxdevflag, lboot saves a word containing D_OLD by default. See the note regarding D_OLD on page 142.